package org.example.rubbish.dto;

public class DatabaseAlarmRequest {
    private String terminalId;  // 新增字段
    private Integer hours = 24;
    private Boolean acknowledged = false;
    private Integer limit = 50;
    private String source;
    private String level;

    public DatabaseAlarmRequest() {
    }

    public DatabaseAlarmRequest(String terminalId, Integer hours, Boolean acknowledged, Integer limit, String source, String level) {
        this.terminalId = terminalId;
        this.hours = hours;
        this.acknowledged = acknowledged;
        this.limit = limit;
        this.source = source;
        this.level = level;
    }

    // getter and setter
    public String getTerminalId() { return terminalId; }
    public void setTerminalId(String terminalId) { this.terminalId = terminalId; }
    public Integer getHours() { return hours; }
    public void setHours(Integer hours) { this.hours = hours; }
    public Boolean getAcknowledged() { return acknowledged; }
    public void setAcknowledged(Boolean acknowledged) { this.acknowledged = acknowledged; }
    public Integer getLimit() { return limit; }
    public void setLimit(Integer limit) { this.limit = limit; }
    public String getSource() { return source; }
    public void setSource(String source) { this.source = source; }
    public String getLevel() { return level; }
    public void setLevel(String level) { this.level = level; }
}